/*
 * @Author: Mark
 * @Date: 2018-09-20 09:36:38
 * @LastEditors: Mark
 * @LastEditTime: 2018-09-20 09:37:08
 * @Description: 校验工具类
 */
export default{

  isValidIP: (ip) => {
    var reg = /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/
    return reg.test(ip)
  }
}
